package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 商品分层枚举
 *
 * @author wangchlei
 * @date 2020/08/22
 */
public enum LayeredEnum {
    /**
     * A
     */
    A("A"),
    /**
     * B
     */
    B("B"),
    /**
     * C
     */
    C("C"),
    /**
     * D
     */
    D("D");

    private String type;

    LayeredEnum(String type) {
        this.type = type;
    }

    /**
     * 获取所有类型
     *
     * @param
     * @return {@link List<String>}
     **/
    public static List<String> getAllType() {
        List<String> type = new ArrayList<>();
        for (LayeredEnum item : LayeredEnum.values()) {
            type.add(item.getType());
        }
        return type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
